<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 引入bootstrap -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
<!-- 引入JQuery  bootstrap.js-->
<script src="<%=request.getContextPath()%>/js/bootstrap.min.js"></script>
<%--<script src="<%=request.getContextPath()%>/js/jquery.validate.min.js"></script>--%>
<script src="<%=request.getContextPath()%>/js/jquery-3.2.1.min.js"></script>
<html>
<head>
    <title>添加题目</title>
    <style type="text/css">
      table{  border-collapse:separate;
          border-spacing:10px;}

    </style>
    <script type="text/javascript">
        if('${message}'!=''){ alert('${message}');}

    </script>

</head>
<body>

    <h1 class="text-center">题目信息添加页面</h1>
    <hr/>

    <div style="width:100%;text-align:center">
    <form action="<%=request.getContextPath()%>/question/addQuestion" method="post">
        <table  align="center" valign="center">
            <tr><td>题目：</td><td><input type="text" name="title" id="title" required=true/></td></tr>
            <tr><td>题目类型：</td><td><select name="question_type" panelHeight="auto" style="width:200px" >
                <option value="选择题">选择题</option>
                <option value="判断题">判断题</option>
                <option value="填空题">填空题</option>
            </select></td></tr>
            <tr><td >知识领域：</td><td><input type="text" name="intellectual_field" id="intellectual_field"/></td></tr>
            <tr><td >知识：</td><td><input type="text" name="knowledge" id="knowledge" /></td></tr>
            <tr><td>选项A：</td><td><input type="text" name="attrA" id="arrtA" /></td></tr>
            <tr><td>选项B：</td><td><input type="text" name="attrB" id="arrtB" /></td></tr>
            <tr><td>选项C：</td><td><input type="text" name="attrC" id="arrtC"/></td></tr>
            <tr><td>选项D：</td><td><input type="text" name="attrD" id="arrtD"/></td></tr>
            <tr><td>正确答案：</td><td><input type="text" name="answer" id="answer" required=true/></td></tr>
            <tr><td>答案分析：</td><td><input type="text" name="analysis" id="analysis" required=true/></td></tr>
        </table>
        <br/>
      <br/>
<button class="btn btn-info text-center" type="submit" >提交</button>
<button type="reset" class="btn btn-danger" onclick="reset()">重置</button>
</form>
</div>
</body>
</html>
